<%--
  Created by IntelliJ IDEA.
  Date: 2025/7/25
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <base href="/oa1/" />
    <title>我的权限</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="static/bootstrap-3.3.5/css/bootstrap.css" rel="stylesheet">
    <link href="static/bootstrapvalidator/css/bootstrapValidator.css"
          rel="stylesheet">

    <script src="static/jquery/jquery-1.10.2.min.js"></script>
    <script src="static/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="static/bootstrapvalidator/js/bootstrapValidator.js"></script>

</head>
<body>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h4 class="panel-title">我的权限</h4>
    </div>

    <div class="panel-body">
        <div class="col-md-12">
            <c:forEach items="${listFunction}" var="function">
                <div class="col-md-2">
                    <h3><span class="label label-success">${function.functionName}</span></h3>
                </div>
            </c:forEach>
        </div>
    </div>

</div>
<script type="text/javascript">
    $(document).ajaxError(function(event,xhr) {
        if(xhr.status=="403"){//没有权限
            document.location.href = xhr.getResponseHeader("url");
        }else if(xhr.status!="200"){
            //alert("服务器错误!");
            console.log("服务器错误!");
        }
    });
</script>
</body>
</html>
